import Vue from 'vue';
import store from '../store';
Vue.directive('admin', function (el, binding) {
  const isAdmin = store.getters.isAdmin;
  if (!isAdmin) {
    el.style.display = 'none';
  }
})
